package com.example.base.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.ehcache.impl.serialization.IntegerSerializer;

import java.io.Serializable;
import java.util.List;

/**
 * 这类实际上不用，就是模仿一下云海的属性，做了点不影响的修改
 * @author wanghongyu02
 * @date 2024-08-09 16:21
 */
@Data
public class TableDataInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    private long total;
    private List<?> rows;
    private int code;
    private String msg;

    public TableDataInfo() {
    }

    public TableDataInfo(List<?> list, int total) {
        this.rows = list;
        this.total = (long)total;
    }
}